#!/bin/bash
# Copyright Huawei Technologies Co., Ltd 2019-2022. All rights reserved.
#
# you may not use this file except in compliance with the license
# you may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# =============================================================================

set -e
BASEPATH=$(cd "$(dirname $0)"; pwd)
BUILD_PATH=$BASEPATH/../../build/
OUTPUT_PATH=$BASEPATH/../../output/

echo $BUILD_PATH

export LD_LABRARY_PATH=/usr/local/HiAI/runtime/lib64:${BUILD_PATH}../third_party/prebuild/x86_64/:${BUILD_PATH}/acl/:${D_LINK_PATH}/x86_64/:${LD_LIBRARY_PATH}

echo ${LD_LIBRARY_PATH}
${OUTPUT_PATH}/libascendcl_utest &&
${OUTPUT_PATH}/ascendcl_c_utest
